package com.whz.compare;

import java.math.BigDecimal;

/**
 * @ClassName MainTest
 * @Description TODO
 * @Author hong-zhi
 * @Date 2021/5/3 21:53
 * @Version 1.0
 */
public class MainTest {
    public static void main(String[] args) {
        BigDecimal bd1 = new BigDecimal("1.0");
        BigDecimal bd2 = new BigDecimal("1.00");
        System.out.println(bd1.equals(bd2));
        System.out.println(bd1.compareTo(bd2));
    }
}
